package com.wjh.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import com.wjh.base.ResponseApiData;
import com.wjh.feign.impl.UserFeignClientImpl;
import com.wjh.user.request.UpdateAmountRequest;

/**
 * 调用用户服务接口
 * 
 * @author wenjianhai
 * @date 2023/6/29
 * @since JDK 17
 */
@FeignClient(name = "user-server", path = "/user/api", fallbackFactory = UserFeignClientImpl.class)
public interface IUserFeignClient {
	/**
	 * 更新用户可用金额
	 *
	 * @date 2023-06-29
	 * @param request 请求参数
	 * @return ResponseApiData
	 * @since JDK 17
	 * @author wenjianhai
	 */
	@PostMapping("/update/amount")
	ResponseApiData<?> updateAmount(@RequestBody UpdateAmountRequest request);
}
